package assistant

import (
	"net/http"

	"paper-pro/app/assistant/api/internal/logic/assistant"
	"paper-pro/app/assistant/api/internal/svc"
	"paper-pro/pkg/result"
)

// list assistant metas
func ListMetasHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
	return func(w http.ResponseWriter, r *http.Request) {
		l := assistant.NewListMetasLogic(r.Context(), svcCtx)
		resp, err := l.ListMetas()
		result.HttpResult(r, w, resp, err)
	}
}
